import request from "@/utils/request.js"


/**
 * @description: 查询检查列表
 */
export function getchecklist(query, data) {
  return request({
    url: `/system/task/checkRecordList?pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
    method: "post",
    data,
  });
}

// 查询检查列表状态值
export function getcheckStatusCount(query, data) {
  return request({
    url: `/system/task/checkRecordCount?pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
    method: "post",
    data,
  });
}

// 查询任务详情--隐患处置
export function getselectDangerDetailByTaskId(query) {
  return request({
    url: `/system/task/selectDangerDetailByTaskId?taskId=${query.taskId}&taskDisposalId=${query.taskDisposalId}&firstFlag=${query.firstFlag}`,
    method: "get",
  });
}

// 查询任务详情
export function gettaskdetail(taskId) {
  return request({
    url: `/system/task/${taskId}`,
    method: "get",
  });
}

// 查询问题渲染
export function getquestion(id) {
  return request({
    url: `/system/question/${id}`,
    method: "get",
  });
}

// 查询问题渲染
export function getInfoByFollow(id) {
  return request({
    url: `/system/updateLog/getInfoByFollowId/${id}`,
    method: "get",
  });
}